package com.ruoyi.reward.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 积分商品对象 community_reward
 * 
 * @author xianyu
 * @date 2025-04-04
 */
public class CommunityReward extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 商品名 */
    @Excel(name = "商品名")
    private String name;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String description;

    /** 所需积分 */
    @Excel(name = "所需积分")
    private Long pointsCost;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    /** 商品照片 */
    @Excel(name = "商品照片")
    private String imageUrl;

    /** 1=上架，0=下架 */
    @Excel(name = "1=上架，0=下架")
    private Long status;

    /** 是否实物商品 */
    @Excel(name = "是否实物商品")
    private Long isPhysical;

    /** 抢购时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "抢购时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date flashSaleTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setPointsCost(Long pointsCost) 
    {
        this.pointsCost = pointsCost;
    }

    public Long getPointsCost() 
    {
        return pointsCost;
    }

    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }

    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setIsPhysical(Long isPhysical) 
    {
        this.isPhysical = isPhysical;
    }

    public Long getIsPhysical() 
    {
        return isPhysical;
    }

    public void setFlashSaleTime(Date flashSaleTime) 
    {
        this.flashSaleTime = flashSaleTime;
    }

    public Date getFlashSaleTime() 
    {
        return flashSaleTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("description", getDescription())
            .append("pointsCost", getPointsCost())
            .append("stock", getStock())
            .append("imageUrl", getImageUrl())
            .append("status", getStatus())
            .append("isPhysical", getIsPhysical())
            .append("flashSaleTime", getFlashSaleTime())
            .toString();
    }
}
